package com.cetc32.dh.mybatis;

import com.cetc32.dh.entity.DemandSubmit;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DemandSubmitMapper {

    List<DemandSubmit> findAll();

    int deleteByPrimaryKey(Integer id);

    int insert(DemandSubmit record);

    int insertSelective(DemandSubmit record);

    DemandSubmit selectByPrimaryKey(Integer id);

    List<DemandSubmit> selectByLimit(@Param("offset") Integer offset,@Param("limit") Integer limit);

    int countDemand();

    int updateByPrimaryKeySelective(DemandSubmit record);

    int updateByPrimaryKey(DemandSubmit record);

    List<DemandSubmit> findByKeyWord(String keyword);
}